import request from '@/utils/request'

// 查询船员简历列表
export function listResume(query) {
  return request({
    url: '/system/crewResume/list',
    method: 'get',
    params: query
  })
}

// 查询船员简历详细
export function getResume(id) {
  return request({
    url: '/system/crewResume/' + id,
    method: 'get'
  })
}

// 新增船员简历
export function addResume(data) {
  return request({
    url: '/system/crewResume',
    method: 'post',
    data: data
  })
}

// 修改船员简历
export function updateResume(data) {
  return request({
    url: '/system/crewResume',
    method: 'put',
    data: data
  })
}

// 删除船员简历
export function delResume(id) {
  return request({
    url: '/system/crewResume/' + id,
    method: 'delete'
  })
}

// 推荐
export function recommendationResume(id) {
  return request({
    url: '/system/crewResume/recommendation/' + id,
    method: 'get'
  })
}

// 取消推荐
export function cancelRecommendationResume(id) {
  return request({
    url: '/system/crewResume/cancelRecommendation/' + id,
    method: 'get'
  })
}
